package com.example.tests;
import org.testng.annotations.Test;

public class TestAddNonEmptyContact extends BaseClass {
	@Test
	public void testAddNewContact() throws Exception {
		ContactData contact = new ContactData();
		contact.firstname = "First";
		contact.lastname = "Last";
		contact.address = "Address";
		contact.homeTel = "2550255";
		contact.homeTel = "2660266";		
		contact.mobileTel = "89134736363";
		contact.workTel = "2660266";
		contact.mainMail = "mail1@mail.ru";
		contact.moreMail = "mail1@mail.ru";
		contact.bDay = "11";		
		contact.bMonth = "September";
		contact.bYear = "1990";
		contact.group = "[none]";
		contact.moreAddress = "address";
		contact.morePhone = "Home";
				
		openMainPage();
		goToLink("add new");
		fillContactForm (contact);
	    submitClick("submit");
	    goToLink("home page");
	  }
}
